﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace SteamGameApp
{
    [Serializable()]
    public class Game
    {
        #region Members
        private string name;
        private bool completed;
        private int hoursToComplete;
        public bool isDirty = false;
        #endregion

        #region Propities

        [XmlAttribute("Name")]
        public string Name
        {
            get { return name; }
            set { name = value; isDirty = true; }
        }
        [XmlElement("Completed")]
        public bool Completed
        {
            get { return completed; }
            set { completed = value; isDirty = true; }
            }
        [XmlElement("HoursToComplete")]
        public int HoursToComplete
            {
            get { return hoursToComplete; }
            set { hoursToComplete = value; isDirty = true; }
        }
        #endregion

    }
}
